package com.example.springboot2.service.impl;

import com.example.springboot2.entity.Login;
import com.example.springboot2.mapper.LoginMapper;
import com.example.springboot2.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @projectName: springboot2
 * @package: com.example.springboot2.service.impl
 * @className: LoginServiceImpl
 * @author: laoda
 * @description: TODO
 * @date: 2022/4/24 10:25
 * @version: 1.0
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Login checkLogin(Login login) {
        //业务  加密
        return loginMapper.checkLogin(login);
    }

    @Override
    public boolean insert(Login login) {
        return loginMapper.insert(login)>0?true:false;
    }
}
